﻿using SignalRApp.Models;
using SignalRApp.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SignalRApp.Service
{
    public interface IChatGroupService
    {
        ChatGroup GetById(int id);
    }

    public class ChatGroupService : IChatGroupService
    {
        private readonly Repository<ChatGroup> repository;

        public ChatGroupService(Repository<ChatGroup> repository)
        {
            this.repository = repository;
        }

        public ChatGroup GetById(int id)
        {
            return repository.GetById(id);
        }
    }
}